package annotation.common;

import java.util.Date;

import annotation.annotations.Age;
import annotation.annotations.Column;
import annotation.annotations.Name;
import annotation.annotations.Table;

@Table("table_user")
public class User {

	@Column(name = "id", comment="id", type = "bigint", length = 50, isNotNull = true, isPrimatyKey = true)
	private Long id;

	@Column(name = "name", type = "varchar",defaultValue="fenwe", length = 20,isNotNull = true)
	@Name(type = "java.lang.String", length = 3)
	private String name;
	
	@Column(name = "sex", type = "varchar", length = 10, isNotNull = true)
	private String sex;
	
	@Column(name = "age", type = "int", length = 3,isNotNull = true,defaultValue="22")
	@Age(type = "java.lang.Integer", length = 3)
	private int age;
	
	@Column(name = "telephone", type = "varchar", length = 50, defaultValue="13667687812")
	private String telephone;
	
	@Column(name = "createTime", type = "date")
	private Date createTime;
	
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "address", type = "varchar", length = 255)
	private String address;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {

		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
}
